<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <link rel='stylesheet' href='/stylesheets/common.css' />
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <ul>
      <% for(var i=0;i<userList.length; i++){%>
        <li>
          <img src = "/images/wy.jpg" style="height: 100px;width: 100px;"/>
          <%="姓名："+userList[i]["username"]%>
          <%="年龄："+userList[i]["age"]%>
        </li>  
      <%} %>
    </ul>
  </body>
      <script>
        fetch("http://localhost:3000/test?userid=10&age=21").then(res=>res.text())
        .then(res=>console.log(res))
        fetch("http://localhost:3000/show/1").then(res=>res.text())
        .then(res=>console.log(res))
        var obj = {username:"zhangsan",pwd:"123456"}
        fetch("http://localhost:3000/login",{
          body:JSON.stringify(obj),
          method:'POST'
        })
      </script>
</html>
